<template>
    <h1>父组件</h1>
    <h1>{{ num }}</h1>
    <button @click="num++">点击累加</button>
    <hr>
    <ArticleCom3 v-model="num"></ArticleCom3>
</template>
<!-- // setup作为script的属性 是 setup函数的语法糖 -->
<script setup>
import ArticleCom3 from './components/ArticleCom4.vue';
import {ref} from 'vue'
let num = ref(0)

</script>
<script>
export default {
name: 'App',
}
</script>
